<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

    <f:view contentType="text/html">
        <h:head>
            <f:facet name="first">
                <meta content='text/html; charset=UTF-8' http-equiv="Content-Type"/>
                <title>Tiendita UGB</title>
            </f:facet>
        </h:head>

        <h:body>

            <p:layout fullPage="true">

                <p:layoutUnit position="north" size="100" resizable="true" closable="true" collapsible="true">
                    Header
                </p:layoutUnit>

                <p:layoutUnit position="south" size="100" closable="true" collapsible="true">
                    <center>Pre-especializacion Java EE Ingenieria en Sistamas 2013</center>
                </p:layoutUnit>

                <p:layoutUnit position="west" size="175" header="Ocultar" collapsible="true">
                    
                </p:layoutUnit>

                <p:layoutUnit position="center">
                    <center><h3>Registrar Pedido</h3>
                 <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreatePedidosLabel_IDPedido}" for="IDPedido" />
                    <h:inputText id="IDPedido" value="#{pedidosController.selected.IDPedido}" title="#{bundle.CreatePedidosTitle_IDPedido}" required="true" requiredMessage="#{bundle.CreatePedidosRequiredMessage_IDPedido}"/>
                    <h:outputLabel value="#{bundle.CreatePedidosLabel_numeroPedido}" for="numeroPedido" />
                    <h:inputText id="numeroPedido" value="#{pedidosController.selected.numeroPedido}" title="#{bundle.CreatePedidosTitle_numeroPedido}" required="true" requiredMessage="#{bundle.CreatePedidosRequiredMessage_numeroPedido}"/>
                    <h:outputLabel value="#{bundle.CreatePedidosLabel_IDProducto}" for="IDProducto" />
                    <h:selectOneMenu id="IDProducto" value="#{pedidosController.selected.IDProducto}" title="#{bundle.CreatePedidosTitle_IDProducto}" required="true" requiredMessage="#{bundle.CreatePedidosRequiredMessage_IDProducto}">
                        <f:selectItems value="#{productosController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreatePedidosLabel_IDCliente}" for="IDCliente" />
                    <h:selectOneMenu id="IDCliente" value="#{pedidosController.selected.IDCliente}" title="#{bundle.CreatePedidosTitle_IDCliente}" required="true" requiredMessage="#{bundle.CreatePedidosRequiredMessage_IDCliente}">
                        <f:selectItems value="#{clienteController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <br /><br />
                <h:commandLink action="#{pedidosController.create}" value="#{bundle.CreatePedidosSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{pedidosController.prepareList}" value="#{bundle.CreatePedidosShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/indexs" value="#{bundle.CreatePedidosIndexLink}"/>
            </h:form></center>
                    
                </p:layoutUnit>

            </p:layout>

        </h:body>

    </f:view>
</html>

